#pragma once
#include <QtWidgets/QMainWindow>
#include "ui_Mainwindow.h"
#include <QTreeWidgetItem>
#include "logindialog.h"
#include "ui_logindialog.h"
class Mainwindow : public QMainWindow
{
	Q_OBJECT

public:
	Mainwindow(QWidget *parent = Q_NULLPTR);
	Mainwindow(LoginDialog *login,QWidget *parent = Q_NULLPTR);
	Ui::MainwindowClass getUi();
	QString getLoginUserId();

private slots:
	void on_stuMenuTree_itemClicked(QTreeWidgetItem *item, int column);
	void on_changepwBtn_clicked();
	void on_allCourseTable_cellChanged(int row, int col);
	void on_saveStudentBtn_clicked();
private:
	Ui::MainwindowClass ui;
	LoginDialog *loginDialog;
	int allCourseTableFlag = 0;
};
